package com.peace.hospital.opdept.mapper.common;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peace.hospital.entity.common.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 科室地址表 Mapper 接口
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-11
 */
@Mapper
public interface AddressMapper extends BaseMapper<Address> {

    /**
     * 通过科室ID查询地址*/
    @Select("select * from hospital_public.address where depid = #{depid}")
    Address selectAddressById(int depid);

}
